<template>
    <div class="detail">

        <!-- 
        <div class="title clearBoth">
            <img :src="logoRed">
        </div>
        -->

        <commonNav></commonNav>
        
        <!-- <div class="richText"></div> -->
        <richText></richText>

        <div class="carousel" style="">
            <div class="carousel-title">
                <span class="title">其他作品</span>
            </div>
            <el-carousel :interval="4000" type="card">
                <el-carousel-item v-for="item in itemList" :key="item">
                <h3 class="medium"><img :src="item"/></h3>
                </el-carousel-item>
            </el-carousel>
        </div>
        <div>
            <detail-footer></detail-footer>
        </div>
    </div>
</template>
<script>

import commonNav from '@/components/home/nav'
import richText from './rich_text'
import footer from '@/components/home/footer'
import otherWork1 from "../../assets/images/other_works_1.png";
import otherWork2 from "../../assets/images/other_works_2.png";
import otherWork3 from "../../assets/images/other_works_3.png";
import logoRed from '@/assets/images/logo_red.png';

let itemList = new Array();
itemList.push(otherWork1);
itemList.push(otherWork2);
itemList.push(otherWork3);

export default {
    components: {
        commonNav: commonNav,
        richText: richText, 
        detailFooter: footer
    },
    data(){
        return {
            logoRed:logoRed,
            itemList: itemList
        }
    }
}
</script>
<style lang="less" scoped>
.el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 200px;
    margin: 0;
    }

.el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
}

.carousel {
    background: #efeeed;
    padding-top: .3rem;
    .carousel-title {
        text-align: center;
    }
    .title {
        font-size: .3rem;
        display:block;
        font-weight:600;
        margin-bottom:.3rem
    }
}
</style>